<%-- $RCSFile: Update.aspx $
 Apache license v2 2011 by Christian Surieux
 $Source: ?/AddonNice/Setup/Update.aspx $
 $log$
 Revision 6 2010/08/09 10:51:22  christian.surieux
   Added Log comment to all .aspx .ascx .master files
 --%>
<%@ Page language="c#"  AutoEventWireup="false" Inherits="AddonNice.Setup.Update" Codebehind="Update.aspx.cs" Theme="Web20" %>
<%@ Register Assembly="Telerik.Web.UI"    Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat='server'>
    <title>Addon Nice Setup</title>
    <style type="text/css" media="all">
        .mainupdate
        {
            width: 100%; 
            position:fixed; 
            left:0; 
            top:0;
        }
        .subupdate
        {
            display:block; 
            width: 903px; 
            margin-left: 10%; 
            margin-top:0;
        }
        .panels
        {
            margin-left: 0px; 
            margin-right: 0px;
        }
        .infopaneltable
        {
            table-layout:fixed; 
            overflow:hidden;
        }
        .wcentp
        {
            width: 100%;
        }
        .textcenter
        {
            text-align:center;
        }
        .scripts
        {
            overflow: auto; 
            min-height: 100px;
        }
        .results
        {
            overflow: auto; 
            height: 200px;
        }
    </style>
</head>
<body runat="server">
<!--[if lte IE 7]>
    <link rel="stylesheet" type="text/css" href="/aspnet_client/ADNCRM_CSS/iehacks.css" />
  <![endif]-->

  <!--[if lte IE 6]>
    <script type="text/javascript" src="/aspnet_client/ADNCRM_scripts/ie6scripts.js"></script>
    <link rel="stylesheet" type="text/css" href="/aspnet_client/ADNCRM_CSS/ie6hacks.css" />
  <![endif]-->

  <!--[if lt IE 6]>
    <link rel="stylesheet" type="text/css" href="/aspnet_client/ADNCRM_CSS/iehacks-5.5.css" />
  <![endif]-->

	<form id="Setup" runat="server" >
        <telerik:RadScriptManager ID="ADNSCMSetup" Runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true"  EnableTheming="True" >
		    <Scripts>
			    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
			    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
		    </Scripts>
	    </telerik:RadScriptManager>
        <Telerik:RadStyleSheetManager ID="RSSManager" runat="server" />
        <div class="mainupdate" >
            <div  class="subupdate" >
                <Telerik:radformdecorator id="FormDecorator1" runat="server" decoratedcontrols="Default" />
		        <asp:image runat='server' ID='setupban' SkinID='Setup' style="width: auto;" />
		        <div class="panels" >
		        <asp:Panel id="InfoPanel" runat="server" Visible="true">
			        <table  id="infopaneltable" cellspacing="1" cellpadding="1" width="100%" border="0" class="infopaneltable" >
				        <tr>
					        <td>
						        <p>
        					        <strong><u><asp:Literal  ID='liter' Text= "<%$ Resources:ADNCRM,PORTAL_SETUP_UPDATE %>" runat='server' /></u></strong>
						        </p>
						        <p>
		    				        <asp:Literal ID='liter1' Text= "<%$ Resources:ADNCRM,PORTAL_PAGE_UPDATE %>" runat='server' />
						        </p>
					        </td>
				        </tr>
			        </table>
		        </asp:Panel>
		        <asp:Panel id="AuthenticationPanel" runat="server" Visible="false">
			        <table  id="authenticatetable" cellspacing="1" cellpadding="1" width="100%" border="0">
				        <tr>
					        <td>
					        <p>
					            <strong><u><asp:Literal  ID='Literal2' Text= "<%$ Resources:ADNCRM,PORTAL_SETUP_UPDATE %>" runat='server'/></u></strong>
					        </p>
						    <p>
						        <asp:Literal  ID='liter3' Text= "<%$ Resources:ADNCRM,PORTAL_WELCOME %>"  runat='server'></asp:Literal>
						     </p>
						     <p>
							    <asp:Label id="loginError" runat="server" Visible="False" CssClass="Error"  Text= "<%$ Resources:ADNCRM,PORTAL_SETUP_USERNAME_PASSWORD_INCORRECT %>"></asp:Label>
					        </p>
					        <p><strong><asp:Literal  ID='Liter9' Text= "<%$ Resources:ADNCRM,PORTAL_SETUP_USERNAME %>" runat='server' /></strong>&nbsp;
						        <asp:TextBox id="updateUsername" runat="server"></asp:TextBox><br/>
						        <strong><asp:Literal  ID='Literal1' Text= "<%$ Resources:ADNCRM,PORTAL_SETUP_PASSWORD %>" runat='server' /></strong>&nbsp;
						        <asp:TextBox id="updatePassword" runat="server" TextMode="Password"></asp:TextBox>
						    </p>
						    <br />
					        <asp:ImageButton  SkinID="setuplogin_" id="authenticateUser" runat="server" alternatetext="Login" CausesValidation="False" />
					        </td>
				        </tr>
			        </table>
		        </asp:Panel>
		        <asp:Panel id="UpdatePanel" runat="server" Visible="False">
			        <table id="Table2" cellspacing="1" cellpadding="1" width="100%" border="0">
				        <tr id="dbNoUpdate" runat="server">
					        <td align="center">
						        <asp:Literal  ID='liter4' Text= "<%$ Resources:ADNCRM,PORTAL_SETUP_DATABASE_UPTODATE %>" runat="server" />
						        <br />
						        <asp:ImageButton  SkinID="setupfinish_" id="FinishButton2" runat="server" alternatetext= "<%$ Resources:ADNCRM, PORTAL_SETUP_FINISH %>"   />
					        </td>
				        </tr>
				        <tr id="dbNeedsUpdate" runat="server">
				        <td>
					        <div class="wcentp" >
						        <p><asp:Literal  ID='liter5' Text="<%$ Resources:ADNCRM,PORTAL_VERSION %>" runat='server'/></p>
						        <p class="textcenter" ><asp:Label id="lblVersion" runat="server" /></p>
						        <p><asp:Literal  ID='liter6' Text="<%$ Resources:ADNCRM,PORTAL_UPDATE_PATCHS %>" runat='server'/></p>
						        <p class="textcenter"></p>
						        <div class="scripts" >
							        <asp:DataList id="dlScripts" runat="server">
								        <ItemTemplate>
									        <asp:Label id='Label6' runat="server" Text='<%# DataBinder.Eval(Container, "DataItem") %>' />
								        </ItemTemplate>
							        </asp:DataList>
						        </div>
						    </div>
				        </td>
				        </tr>
				        <tr id="UpdateDatabaseRow" runat="server" >
					        <td>
                            <telerik:RadProgressManager id="RadProgressManager1"  runat="server" />
                            <telerik:RadProgressArea id="RadProgressArea1" runat="server"  Width="100%"
                                    ProgressIndicators="FilesCountBar, FilesCount, FilesCountPercent, SelectedFilesCount, CurrentFileName, TimeElapsed, TimeEstimated" >
                            </telerik:RadProgressArea>
					        <br />
					        <p align="left"><asp:Literal  ID='liter7' Text="<%$ Resources:ADNCRM,PORTAL_SAVE_DATA %>" runat='server'/></p>
					        <br />
					        <asp:ImageButton  SkinID="setupnext_" id="UpdateDatabaseCommand" runat="server" alternatetext="Next" />
					        </td>
				        </tr>
				        <tr id="Status" runat="server" visible="false">
            	        <td align='center'>
					        <asp:Label id="lblStatus" Text="<%$ Resources:ADNCRM,PORTAL_SETUP_DATABASE_UPDATE_SUCCESS %>" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="Large" />
					        <br />
						    <asp:ImageButton  SkinID="setupfinish_" id="FinishButton" runat="server" alternatetext= "<%$ Resources:ADNCRM,PORTAL_SETUP_FINISH %>"  />
				        </td>
				        </tr>
				        <tr id="dbUpdateResult" runat="server" visible="false">
					        <td>
						        <div class="results" >
							        <p>
								        <asp:DataList id="dlErrors" runat="server" CssClass='Error'>
									        <ItemTemplate>
										        <asp:Label id="ErrorLabel" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem") %>' Font-Bold="True" Font-Size="8">
										        </asp:Label>
									        </ItemTemplate>
								        </asp:DataList>
							        </p>
							        <p>
								        <asp:DataList id="dlMessages" runat="server">
									        <ItemTemplate>
										        <asp:Label id="MessageLabel" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem") %>' Font-Bold="True" Font-Size="8">
										        </asp:Label>
									        </ItemTemplate>
								        </asp:DataList>
							        </p>
						        </div>
					        </td>
				        </tr>
			        </table>
		        </asp:Panel>
		        </div>
		        <div class="textcenter wcentp">
					<strong>Christian Surieux - (c) 2009-2010</strong>
                </div>
            </div>
	    </div>
	</form>
</body>
</html>
